package com.sc.nft.admin.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@NoArgsConstructor
public class EditDaoDivideRequest {

    @ApiModelProperty(value = "品牌Id")
    @NotNull(message = "品牌Id不能为空")
    private Long daoId;
    @ApiModelProperty(value = "状态")
    @NotNull(message = "状态不能为空")
    private Boolean status;
    @ApiModelProperty(value = "返点用户手机号")
    @NotBlank(message = "返点用户手机号不能为空")
    private String returnUserTel;
    @ApiModelProperty(value = "上链手续费")
    @NotNull(message = "上链手续费不能为空")
    @Range(min = 0, max = 100, message = "上链手续费必须在0-100之间")
    private BigDecimal mintPrice;
    @ApiModelProperty(value = "分成比例")
    @NotNull(message = "分成比例不能为空")
    @Range(min = 0, max = 100, message = "分成比例必须在0-100之间")
    private BigDecimal shareRatio;
}
